

<html>
	<head>
	<title>Definitions</title>
	
		<script type="text/javascript">
			function onUpdateFAQ(id){
				
					if('-1' == document.getElementById("Services123").value){
					   alert("please select service.");
				   }else if('' == document.getElementById("RNo").value){
					   alert("please Enter Question.");
				   }else if('' == document.getElementById("ARR").value){
					   alert("please Write Answer.");
				   }
				   
				   
				   
				   if (window.XMLHttpRequest)
					  {
						// code for IE7+, Firefox, Chrome, Opera, Safari
					   xmlhttp=new XMLHttpRequest();
					  }
					else
					  {
						// code for IE6, IE5
					  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
					  }
					xmlhttp.onreadystatechange=function()
					  {
					  if (xmlhttp.readyState==4 && xmlhttp.status==200)
					     {
					    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
					    }
					  }
					
									
					var Services = document.getElementById("Services123");
					var RNo = document.getElementById("RNo");
					var ARR = document.getElementById("ARR");
					var caption = document.getElementById("caption");
					var Definition = document.getElementById("Definition");
					
										
					xmlhttp.open("POST","circular.do?Services="+Services.value+"&RNo="+RNo.value+"&ARR="+ARR.value+"&methodid="+id+"&caption="+caption.value+"&Definition="+Definition.value,true);
					xmlhttp.send();

				    
				}
			
			
			function updateArticles123(id){
				 document.getElementById("updateServicesDiv").style.display="";
			}
			
			
			function OnSelectionChange (select) {
	            var selectedOption = select.options[select.selectedIndex];
	            
	            var xmlhttp;
	           
				if (window.XMLHttpRequest)
				  {
						// code for IE7+, Firefox, Chrome, Opera, Safari
				   		xmlhttp=new XMLHttpRequest();
				  }else
				  {
						// code for IE6, IE5
				  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				  }
				xmlhttp.onreadystatechange=function()
				  {
				  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				     {
				    	document.getElementById("updateArticlesNmuberDiv").innerHTML=xmlhttp.responseText;
				    }
				  }
			xmlhttp.open("POST","gettingDefinitionsbasedOnServiceNumber.do?selectedServiceOption="+selectedOption.value+"&methodName=gettingcircularNumebrsbasedOnServiceNumber",true);
			xmlhttp.send();
	        }
			
			function OnSelectionCircularNumberChange(select) {
				 
				 var selectedNotificationNumber=select.options[select.selectedIndex];
				 var selectedServiceNumber=document.getElementById("serviceNumberForUpdation").value; 
				 document.getElementById("yyyDiv").innerHTML='';
				 var circularNumber =  document.getElementById("circularNumber123");
				 if(null != circularNumber){
					 circularNumber = circularNumber.value;
				 }
				 
		            
		            var xmlhttp;
					if (window.XMLHttpRequest)
					  {
							// code for IE7+, Firefox, Chrome, Opera, Safari
					   		xmlhttp=new XMLHttpRequest();
					  }else
					  {
							// code for IE6, IE5
					  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
					  }
					xmlhttp.onreadystatechange=function()
					  {
					  if (xmlhttp.readyState==4 && xmlhttp.status==200)
					     {
					    	document.getElementById("gettingArticlesDetailsbasedOnArticlesNumberDiv").innerHTML=xmlhttp.responseText;
					    }
					  }
				
				xmlhttp.open("POST","gettingDefinitionsbasedOnServiceNumber.do?selectedCircularNumber="+circularNumber+"&methodName=circularNumberDetailsBasedOnServicenumberAndCircularDate&selectedServiceNumber="+selectedServiceNumber,true);
				xmlhttp.send();
		        }
			function updateDefiinitions(id){
				 
				 var serviceNumber=document.getElementById("serviceNumberForUpdation").value; 
				 
				 var actRule=document.getElementById("act_rule").value;
				 
				 var definition = document.getElementById("definition");
				 if(null != definition){
					 
					 definition = document.getElementById("definition").value;
				 }
				 var CircularNumber =  "1";
				 
				// var effectiveDate=document.getElementById("Effectivedate121").value;
				 if(null != serviceNumber && 'undefined' == serviceNumber){
					 serviceNumber = document.getElementById("serviceNumberForUpdation").value;
				 }
				 
				 var PrevousDefi = null != document.getElementById("circularNumber123")?document.getElementById("circularNumber123"):"";
				 id= 'updateDefinitions121';
		            var xmlhttp;
					if (window.XMLHttpRequest)
					  {
							// code for IE7+, Firefox, Chrome, Opera, Safari
					   		xmlhttp=new XMLHttpRequest();
					  }else
					  {
							// code for IE6, IE5
					  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
					  }
					xmlhttp.onreadystatechange=function()
					  {
					  if (xmlhttp.readyState==4 && xmlhttp.status==200)
					     {
					    	document.getElementById("yyyDiv").innerHTML=xmlhttp.responseText;
					    }
					  }
				
					xmlhttp.open("POST","circular.do?Services="+serviceNumber+"&actRule="+actRule+"&definitions="+definition+"&methodid="+id+"&PreviousDeff="+PrevousDefi.value,true);
				xmlhttp.send();
			}
	

		</script>
	
	</head>
	
	
	
	<table width="600px" cellpadding = '3' cellspacing="0">
		<tr>
			<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h1><font color="red">DEFINITIONS</font></h1></td>
		</tr>
	</table>
		<table width="600px" cellpadding = '3' align="center" border="0" cellspacing ="0" cellpadding="0" valign="middle" id="answer1">
    <tr>
        <td><div id="myDiv"></div></td>
    </tr>
	</table>
	<table>
		
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" ><h2>Services</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" ><select  name="Services123" id="Services123">
			<option name="default" id="defaule" value="-1">-----------------------Select One--------------------</option>
			<option name="1" id="1" value="1" title="Service1">FDI</option>
			<option name="2" id="" value="" title="Service2">Transfer Tool</option>
			<option name="3" id="2" value="2" title="Service3">Immovable In India</option>
			<option name="4" id="11" value="11" title="Service4">Foreign Exchange</option>
			<option name="5" id="8" value="8" title="Service5">Immovable Outside India</option>
			<option name="6" id="7" value="7" title="Service6">ODI Main</option>
			<option name="7" id="3" value="3" title="Service7">Branch Lo Po In India</option>
			<option name="8" id="9" value="9" title="Service8">ODI Individual</option>
			</select>
			</td>
		</tr>
		
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>section/Rule/Regulation No</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><input type="text" size="52px" name="RNo" id="RNo"></td>
		</tr>
		<!-- <tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Captions</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><input type="text" size="52px" name="caption" id="caption"></td>
		</tr> -->
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Definition</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><textarea rows="5" cols="50" width="50px" name="Definition" id="Definition"></textarea></</td>
		</tr>
			
		
		<tr>
		 	<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><input type="button" style="border-radius: 5px; background-image:none; background-color:#07c; border:none; !important; color:#fff; height:26px;font-weight: bold; font-size:16px;" width="50px" name="updateFAQ" id="updaten" value="Add" onclick='onUpdateFAQ("Definitions")'/></td>
		 	
		 	<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"  width = "75%" ><input type="button" style="border-radius: 5px; background-image:none; background-color:#07c; border:none; !important; color:#fff; height:26px;font-weight: bold; font-size:16px;" name="updateArticles" id="updateArticles" value="update" onClick="updateArticles123()"/></td>	
		</tr>	
		<tr>
		 	<td>&nbsp;</td>
		 	<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"  width = "75%" >&nbsp;</td>		
		</tr>
		
		<tr><td colspan="2" >
		<div id="updateServicesDiv" style="display:none;width:100%">
			<table width="600px" >
			
				<tr>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "25%" colspan="4"><h2><b>---------------
					------------------------------------------------------------------------------------------------</b></h2></td>
					
	 			</tr>
				<tr>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "250px" colspan="4"><h2><b><font color="red">
					Definition Update Functionality:</font></b></h2></td>
					
	 			</tr>
	 			
				<tr>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "250px" ><h2>Services</h2></td>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "350px" >
						 <select id="serviceNumberForUpdation" name = 'serviceNumberForUpdation' onChange="OnSelectionChange(this)">
					        <option value="-1">-----------------------Select One--------------------</option>
							
							<option name="1" id="1" value="1" title="Service1">FDI</option>
							<option value="" title="Transfer Tool">Transfer Tool</option>
							<option value="2" title="Immovable In India">Immovable In India</option>
							<option value="11" title="Foreign Exchange">Foreign Exchange</option>
							<option value="8" title="Immovable Outside India">Immovable Outside India</option>
							<option value="7" title="ODI Main">ODI Main</option>
							<option value="3" title="Branch Lo Po In India">Branch Lo Po In India</option>
							<option value="9" title="ODI Individual">ODI Individual</option>
					    </select>
					</td>
	 			</tr>
	 			
	 			<tr><td width = "100%" colspan="2"><div id="updateArticlesNmuberDiv" style="width:100%"  />&nbsp;</td></tr>
	 			<tr><td width = "100%" colspan="2"><div id="gettingArticleDetailsbasedOnNotificationNumberDiv" style="width:100%"  />&nbsp;</td></tr>
	 			<tr><td width = "100%" colspan="2"><div id="gettingArticlesDetailsbasedOnArticlesNumberDiv" style="width:800px"  />&nbsp;</td></tr>
	 			<tr><td width = "100%" colspan="2" > 
			<div id="yyyDiv" style="width:100%" ></div></td>
	 	</tr>
	 			
			</table>
		</div>
		</td>
		</tr>
		<tr><td colspan="2">
		<div id="updateCircularNmuberDiv" style="width:100%"  />
			
		</td></tr>
		<tr><td colspan="2"  >
						<div id="updateCircularDetailesDiv" style="width:100%" ></div></td>
	 			</tr>
	 			
	 			<tr><td colspan="2"  >
						<div id="xxxDiv" style="width:100%" ></div></td>
	 			</tr>
	 			
	 			<tr><td colspan="2"  >
						<div id="yyyDiv" style="width:100%" ></div></td>
	 			</tr>
			</table>
			
			<!-- 
			<table>
				<tr>
			 	<td><input type="file" name="file" size="50" /></td>
			 	<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"  width = "75%" >
			 	<input type="button" name="insertUpdateTool" id="insertUpdateTool" value="insertUpdateTool" onClick="onInsertUpdateTool('Circulars')"/>
			 	</td>		
				</tr>
			</table>
			 -->
	</form>
	</body>
</html>